package com.hzit.pool.executor.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Component
@PropertySource("classpath:db.properties")  // 相当于：<context:property-placeholder location="classpath:db.properties"/>
@ConfigurationProperties(prefix = "db")
@Data
public class DbProperties {
	private String driver;
}
